
app.config(['$routeProvider', function($routeProvider) {

    console.info('Start to configure route provider');
	
	$routeProvider.
	  when('/', 
	  {
        templateUrl: 'app/components/home/home.view.html',
        controller: 'homeController'
      }).
      when('/index', 
	  {
        templateUrl: 'app/components/home/home.view.html',
        controller: 'homeController'
      }).
	  when('/admin', 
	  {
        templateUrl: 'app/components/admin/admin.view.html',
        controller: 'adminController'
      }).
	  when('/data', 
	  {
        templateUrl: 'app/components/data/data.view.html',
        controller: 'dataController'
      }).
	  when('/accouting', 
	  {
        templateUrl: 'app/components/accouting/accouting.view.html',
        controller: 'accoutingController'
      }).
	  when('/documents', 
	  {
        templateUrl: 'app/components/documents/documents.view.html',
        controller: 'documentsController'
      }).
	  when('/settings', 
	  {
        templateUrl: 'app/components/settings/settings.view.html',
        controller: 'settingsController'
      }).
      otherwise({
        redirectTo: '/'
      });
	  
	console.info('Start to configure toastr component');
	
	toastr.options = {
		"closeButton": true,
		"debug": true,
		"positionClass": "toast-bottom-full-width",
		"onclick": null,
		"showDuration": "300",
		"hideDuration": "1000",
		"timeOut": "5000",
		"extendedTimeOut": "1000",
		"showEasing": "swing",
		"hideEasing": "linear",
		"showMethod": "fadeIn",
		"hideMethod": "fadeOut"
	};
	
	console.info('Application configuration is finished');
}]);